﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplateFileListBackUp.aspx.cs"
    Inherits="Manage_Cms_TemplateFileListBackUp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn" style="width: 98%">
        <div class="columntitle">
            历史数据还原
        </div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" style="height: 25px" align="left">
                <td style="width: 20%;">
                    &nbsp;&nbsp;文件名称</td>
                <td style="width: 20%;">
                    模板类型</td>
                <td style="width: 20%;" align="center">
                    模板修改时间</td>
                <td style="width: 20%;" align="center">
                    模板修改人</td>
                <td align="center">
                    操作</td>
            </tr>
            <%
                foreach (KeRui.Model.CmsTemplateFileBackUp model in list)
                {%>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                style="height: 25px;" align="left">
                <td>
                    &nbsp;&nbsp;<%=model.FileName%>
                </td>
                <td>
                    <%=WebConfig.GetName("TemplateFileType", model.FileType.ToString())%>
                </td>
                <td align="center">
                    <%=model.UpdateTime %>
                </td>
                <td align="center">
                    <%=model.UserName %>
                </td>
                <td align="center">
                    <a href="TemplateFileListBackUp.aspx?act=reduce&id=<%=model.ID %>&siteID=<%=SiteID %>"
                        onclick="javascript:return confirm('此操作将还原模板“<%=model.FileName %>”，确认吗？');">还原 </a>
                    | <a href="TemplateFileListBackUp.aspx?ID=<%=model.ID %>&act=view" target="_blank">预览</a>
                </td>
            </tr>
            <%
                }
            %>
        </table>
        <%=PageShow %>
    </div>
    <input type="button" value="关闭" onclick="window.parent.ymPrompt.doHandler('close');"
        class="button" />
</body>
</html>
